﻿@using ZBJF.Warranty.WebProvider
@{
    ViewBag.Title = "Index";
}
@section Header{
    @Scripts.Render("~/bundles/datatable")
    @Styles.Render("~/Content/datatable")
}
<div class="table-responsive dataTables_wrapper">
    <table id="processLogsList" class="table table-striped table-bordered table-hover">
        <thead>
            <tr>
                <th width="20">序号</th>
                <th width="100">当前状态</th>
                <th width="100">之前状态</th>
                <th width="100">备注内容</th>
                <th width="100">操作人</th>
                <th width="100">操作时间</th>
            </tr>
        </thead>
    </table>
</div>
<script type="text/javascript">
    $(function () {
        var objTable = $("#processLogsList")
            .dataTable({
                fnDrawCallback: function () {
                    ControlPermissionOperate();
                },
                aaSorting:[[5,"desc"]],
                "sAjaxSource": "/InsuranceWarrantyRecord/ProcessLogsList?InsuranceWarrantyRecordId=@(string.IsNullOrEmpty(Request["InsuranceWarrantyRecordId"]) ? PageData["InsuranceWarrantyRecordId"] : Request["InsuranceWarrantyRecordId"])",
                aoColumns: [
                    {
                        "mData": null, "bSortable": false, "fnRender": function (nRow) {
                            return nRow.iDataRow + 1;
                        }
                    },
                    { "mData": "ProcessStatusName", "bSortable": false },
                    { "mData": "BeforeProcessStatusName", "bSortable": false },
                    { "mData": "ReasonDescribe", "bSortable": false },
                    { "mData": "CreateByName", "bSortable": false },
                    { "mData": "CreateTime", "bSortable": false }
                ],
                "fnRowCallback": function (nRow, aData, iDisplayIndex) {
                }
            });
    });
</script>


